package com.unitd.configclient.environment;

import org.springframework.context.ApplicationEvent;

import java.util.Set;

/**
 * @desc 当前运行环境变动监听事件
 * @filename EnvironmentChangeEvent.java
 * @copyright www.pactera.com.cn
 * @author Hudan
 * @version 1.0
 * @date 2018/1/14
 */
public class EnvironmentChangeEvent extends ApplicationEvent {

	/** 进行了改动的属性配置信息的key集合 */
	private Set<String> keys;

	public EnvironmentChangeEvent(Set<String> keys) {
		super(keys);
		this.keys = keys;
	}

	/**
	 * @desc 获取改动的属性配置信息的key集合
	 * @return Set
	 */
	public Set<String> getKeys() {
		return keys;
	}
}